Package jeresources.util
Class RenderHelper
java.lang.Object
jeresources.util.RenderHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawLine(com.mojang.blaze3d.vertex.PoseStack poseStack, int xBegin, int yBegin, int xEnd, int yEnd, int color) static voiddrawTexture(com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y, int u, int v, int width, int height, net.minecraft.resources.ResourceLocation resource) static double[]getGLTranslation(com.mojang.blaze3d.vertex.PoseStack poseStack, double scale) static doublestatic voidrenderBlock(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.world.level.block.state.BlockState block, float x, float y, float z, float rotate, float scale) static voidrenderChest(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float rotate, float scale, float lidAngle) static voidrenderEntity(com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y, double scale, double yaw, double pitch, net.minecraft.world.entity.LivingEntity livingEntity) static voidscissor(com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y, int w, int h) static void
-
Constructor Details
-
RenderHelper
public RenderHelper()
-
-
Method Details
-
drawLine
public static void drawLine(com.mojang.blaze3d.vertex.PoseStack poseStack, int xBegin, int yBegin, int xEnd, int yEnd, int color) -
renderEntity
public static void renderEntity(com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y, double scale, double yaw, double pitch, net.minecraft.world.entity.LivingEntity livingEntity) -
renderChest
public static void renderChest(com.mojang.blaze3d.vertex.PoseStack poseStack, float x, float y, float rotate, float scale, float lidAngle) -
renderBlock
public static void renderBlock(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.world.level.block.state.BlockState block, float x, float y, float z, float rotate, float scale) -
scissor
public static void scissor(com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y, int w, int h) -
stopScissor
public static void stopScissor() -
drawTexture
public static void drawTexture(com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y, int u, int v, int width, int height, net.minecraft.resources.ResourceLocation resource) -
getGLTranslation
public static double[] getGLTranslation(com.mojang.blaze3d.vertex.PoseStack poseStack, double scale) -
getGuiScaleFactor
public static double getGuiScaleFactor()
-